package com.ding.dailyup.model;

import javax.persistence.*;
import java.io.Serializable;
import java.time.LocalDateTime;
import static javax.persistence.GenerationType.IDENTITY;
import org.hibernate.annotations.DynamicInsert;
@Entity
@DynamicInsert
@Table ( name ="stock_recommend" )
public class StockRecommend implements Serializable {
	public static final long serialVersionUID =  4345711751417641880L;
  private Long id;
  private Long strategyId;
  private String stockCode;
  private String stockName;
  private String latest;
  private String priceOpen;
  private String priceClose;
  private String high;
  private String low;
  private String privateChange;
  private String changeRatio;
  private String volume;
  private String turnover;
  private String marketValue;
  private LocalDateTime uploadDate;
  private LocalDateTime createTime;
  private LocalDateTime updateTime;
  private Integer status;


  public StockRecommend() {}

  public StockRecommend(
Long strategyId, String stockCode, String stockName, String latest, String priceOpen, String priceClose, String high, String low, String privateChange, String changeRatio, String volume, String turnover, String marketValue, LocalDateTime uploadDate, LocalDateTime createTime, LocalDateTime updateTime, Integer status) {
    this.strategyId = strategyId;
    this.stockCode = stockCode;
    this.stockName = stockName;
    this.latest = latest;
    this.priceOpen = priceOpen;
    this.priceClose = priceClose;
    this.high = high;
    this.low = low;
    this.privateChange = privateChange;
    this.changeRatio = changeRatio;
    this.volume = volume;
    this.turnover = turnover;
    this.marketValue = marketValue;
    this.uploadDate = uploadDate;
    this.createTime = createTime;
    this.updateTime = updateTime;
    this.status = status;
}


  	@Id
  	@GeneratedValue(strategy = IDENTITY)
  	@Column(name = "id" )
  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }


  	@Column(name = "strategyId" )
  public Long getStrategyId() {
    return strategyId;
  }

  public void setStrategyId(Long strategyId) {
    this.strategyId = strategyId;
  }


  	@Column(name = "stockCode" )
  public String getStockCode() {
    return stockCode;
  }

  public void setStockCode(String stockCode) {
    this.stockCode = stockCode;
  }


	/**
	 * @return 股票名称 
	 */
  	@Column(name = "stockName" )
  public String getStockName() {
    return stockName;
  }

  public void setStockName(String stockName) {
    this.stockName = stockName;
  }


	/**
	 * @return 最新价 
	 */
  	@Column(name = "latest" )
  public String getLatest() {
    return latest;
  }

  public void setLatest(String latest) {
    this.latest = latest;
  }


	/**
	 * @return 开盘价 
	 */
  	@Column(name = "priceOpen" )
  public String getPriceOpen() {
    return priceOpen;
  }

  public void setPriceOpen(String priceOpen) {
    this.priceOpen = priceOpen;
  }


	/**
	 * @return 收盘价 
	 */
  	@Column(name = "priceClose" )
  public String getPriceClose() {
    return priceClose;
  }

  public void setPriceClose(String priceClose) {
    this.priceClose = priceClose;
  }


	/**
	 * @return 最高价 
	 */
  	@Column(name = "high" )
  public String getHigh() {
    return high;
  }

  public void setHigh(String high) {
    this.high = high;
  }


	/**
	 * @return 最低价 
	 */
  	@Column(name = "low" )
  public String getLow() {
    return low;
  }

  public void setLow(String low) {
    this.low = low;
  }


	/**
	 * @return 涨跌 
	 */
  	@Column(name = "privateChange" )
  public String getPrivateChange() {
    return privateChange;
  }

  public void setPrivateChange(String privateChange) {
    this.privateChange = privateChange;
  }


	/**
	 * @return 涨跌比 
	 */
  	@Column(name = "changeRatio" )
  public String getChangeRatio() {
    return changeRatio;
  }

  public void setChangeRatio(String changeRatio) {
    this.changeRatio = changeRatio;
  }


	/**
	 * @return 成交量(手) 
	 */
  	@Column(name = "volume" )
  public String getVolume() {
    return volume;
  }

  public void setVolume(String volume) {
    this.volume = volume;
  }


	/**
	 * @return 成交额（万） 
	 */
  	@Column(name = "turnover" )
  public String getTurnover() {
    return turnover;
  }

  public void setTurnover(String turnover) {
    this.turnover = turnover;
  }


	/**
	 * @return 总市值 
	 */
  	@Column(name = "marketValue" )
  public String getMarketValue() {
    return marketValue;
  }

  public void setMarketValue(String marketValue) {
    this.marketValue = marketValue;
  }


	/**
	 * @return 上传日期 
	 */
  	@Column(name = "uploadDate" )
  public LocalDateTime getUploadDate() {
    return uploadDate;
  }

  public void setUploadDate(LocalDateTime uploadDate) {
    this.uploadDate = uploadDate;
  }


  	@Column(name = "createTime" )
  public LocalDateTime getCreateTime() {
    return createTime;
  }

  public void setCreateTime(LocalDateTime createTime) {
    this.createTime = createTime;
  }


  	@Column(name = "updateTime" )
  public LocalDateTime getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(LocalDateTime updateTime) {
    this.updateTime = updateTime;
  }


	/**
	 * @return 是否可用 default : 1
	 */
  	@Column(name = "status" )
  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }

}